package com.infore.authorityManagement.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**  
* @ClassName: SysRole  
* @Description: 角色表实体类  
* @author 谭红波  
* @date 2017年9月12日  
*/ 
@Entity
@Table(name = "sys_role")
public class SysRole implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "role_id")
    @GeneratedValue(generator = "uuidGenerator")
    @GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
    private String roleId;                  //角色id
    
    
//    @Column(name = "parent_role_id")
//    private String parentRoleId;            //父id
    
    @Column(name = "role_name")
    private String roleName;                //角色名称
    
    @Column(name = "seq_num")
    private Integer seqNum;                 //序号
    
    @Column(name = "create_time")
    private Timestamp createTime;           //创建时间
    
    @Column(name = "create_userid")
    private String createUserId;            //创建人id
    
    @Column(name = "description")
    private String description;                 //描述

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }


    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getSeqNum() {
        return seqNum;
    }

    public void setSeqNum(Integer seqNum) {
        this.seqNum = seqNum;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    
}
